/**
 * 全部案件
 */

import axios from "@/utils/axios";

// 列表
export const list = (params) =>
  axios({
    url: "/api/v1/workOrder/finish/list",
    method: "GET",
    params,
  });

// 详情
export const detail = (id) =>
  axios({
    url: `/api/v1/workOrder/finish/detail/${id}`,
    method: "GET",
  });

export const departmentTree = (params) =>
  axios({
    url: "/api/v1/workOrder/all/department/tree",
    method: "GET",
    params,
  });

// 流程详情
export const processDetails = (id) =>
  axios({
    url: `/api/v1/workOrder/finish/process/${id}`,
    method: "GET",
  });
///添加结案回访
export const addCheckVisit = (data) =>
  axios({
    url: "/api/v1/workOrderCheckVisit/add",
    method: "POST",
    data,
  });

///获取工单核实回访记录 返回三项输入项数据
export const checkVisitQuery = (data) =>
  axios({
    url: "/api/v1/workOrderCheckVisit/query",
    method: "POST",
    data,
  });

///确认终止（针对已终止的工单）
export const makeSureOver = (data) =>
  axios({
    url: "/api/v1/workOrder/finish/makeSureOver",
    method: "POST",
    data,
  });

///增加结案回访记录
export const addVisitRecord = (data) =>
  axios({
    url: "/api/v1/workOrder/finish/addVisitRecord",
    method: "POST",
    data,
  });
